import 'package:flutter/material.dart';
import 'package:schoollifedemo/commonwidget/common_base_page.dart';
import 'package:schoollifedemo/commonwidget/text_widget_with_overflow.dart';
import 'package:schoollifedemo/localization/local_text.dart';

class PrivacyPage extends BaseStatelessPage {
  const PrivacyPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.white,
        padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
        child: ListView(
          physics: const BouncingScrollPhysics(),
          children: [
            Container(
              margin: const EdgeInsets.only(left: 20, right: 20),
              child: const TextWidgetWithOverflow(
                PrivacyLocalText.privacyTitle,
                insideColor: Colors.white,
                textAlign: TextAlign.start,
                fontSize: 36,
                paddingBottom: 20,
              ),
            ),
            Container(
              margin: const EdgeInsets.only(left: 20, right: 20,bottom: 30),
              child: const TextWidgetWithOverflow(
                PrivacyLocalText.privacyText,
                fontSize: 16,
                maxLine: 500,
                textAlign: TextAlign.left,
                paddingTop: 20,
                paddingLeft: 20,
                paddingRight: 20,
                paddingBottom: 20,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
